﻿using Furion.Schedule;

public class ProductJob : IJob
{
    private readonly MainService _mainService;

    public ProductJob(MainService mainService)
    {
        _mainService = mainService;
    }

    public async Task ExecuteAsync(JobExecutingContext context, CancellationToken stoppingToken)
    {
        await _mainService.AddOrUpdateProductAsync();
    }
}